home *** CD-ROM | disk | FTP | other *** search
- global gLabelChannel, gLineChannel, gLabelState, gLineState, gLabelLock, gLineLock, glImageList, glSelectedLabels, glSelectedLines, gPreviewMode, glImageMap, gblack, ggreen, gred, gredx
-
- on ToggleLabelDisplay
- if gLabelState = #off then
- gLabelState = #on
- repeat with x = gLabelChannel to gLabelChannel + 99
- if not (sprite(x).member.type = #empty) then
- sprite(x).visible = 1
- sprite(x).member.foreColor = 255
- end if
- end repeat
- else
- gLabelState = #off
- repeat with x = gLabelChannel to gLabelChannel + 99
- sprite(x).visible = 0
- end repeat
- end if
- glSelectedLabels = []
- updateStage()
- end
-
- on ToggleLineDisplay
- if gLineState = #off then
- gLineState = #on
- repeat with x = gLineChannel to gLineChannel + 99
- if not (sprite(x).member.type = #empty) then
- sprite(x).visible = 1
- if sprite(x).member.strokeColor <> ggreen then
- sprite(x).member.strokeColor = gblack
- end if
- end if
- end repeat
- else
- gLineState = #off
- repeat with x = gLineChannel to gLineChannel + 99
- sprite(x).visible = 0
- end repeat
- end if
- glSelectedLines = []
- updateStage()
- end
-
- on DisplayLabels
- repeat with x = gLabelChannel to gLabelChannel + 99
- if not (sprite(x).member.type = #empty) then
- sprite(x).visible = 1
- sprite(x).member.foreColor = 255
- end if
- end repeat
- updateStage()
- end
-
- on DisplayLines
- repeat with x = gLineChannel to gLineChannel + 99
- if not (sprite(x).member.type = #empty) then
- sprite(x).visible = 1
- if sprite(x).member.strokeColor <> ggreen then
- sprite(x).member.strokeColor = gblack
- end if
- end if
- end repeat
- updateStage()
- end
-
- on deSelectAllLabels
- if gPreviewMode then
- exit
- end if
- glSelectedLabels = []
- repeat with x = gLabelChannel to gLabelChannel + 99
- if sprite(x).member.type = #text then
- sprite(x).member.foreColor = 255
- end if
- end repeat
- end
-
- on deSelectAllLines
- if gPreviewMode then
- exit
- end if
- glSelectedLines = []
- repeat with y = gLineChannel to gLineChannel + 99
- if sprite(y).member.type = #vectorShape then
- case sprite(y).member.strokeColor of
- gred:
- sprite(y).member.strokeColor = gblack
- gredx:
- sprite(y).member.strokeColor = ggreen
- end case
- end if
- end repeat
- end
-
- on SelectAllLabels
- if gPreviewMode then
- exit
- end if
- gLabelState = #on
- sendSprite(275, #SetONstate)
- glSelectedLabels = []
- repeat with x = gLabelChannel to gLabelChannel + 99
- if sprite(x).member.type = #text then
- append(glSelectedLabels, x)
- sprite(x).member.foreColor = 35
- sprite(x).visible = 1
- end if
- end repeat
- end
-
- on SelectAllLines
- if gPreviewMode then
- exit
- end if
- gLineState = #on
- sendSprite(277, #SetONstate)
- glSelectedLines = []
- repeat with y = gLineChannel to gLineChannel + 99
- if sprite(y).member.type = #vectorShape then
- append(glSelectedLines, y)
- case sprite(y).member.strokeColor of
- gblack:
- sprite(y).member.strokeColor = gred
- ggreen:
- sprite(y).member.strokeColor = gredx
- end case
- sprite(y).visible = 1
- end if
- end repeat
- end
-